<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>    
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link href="css/_default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function na_open_window()
{
	var url ='/showbiz/talentPickup.action' ;
	
	var	toolbar_str = 'no';
	var menubar_str = 'no';
	var statusbar_str = 'no';
	var scrollbar_str = 'no';
	var resizable_str = 'no';
	
	window.open(url, 'PickUp設定', 'left='+0+',top='+0+',width='+600+',height='+500+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollerbars='+scrollbar_str+',resizable='+resizable_str);
}
</script>
</head>
<body>
<div class="mainpage">
<s:form method="post">
	<span class="title">タレント管理　>　タレントリスト</span>
	<center>
	<p>
		<span>50音</span>
		<s:select name="kanaKey"
				list="#{
				'0':'--すべて--',
				'1':'アイウエオ',
				'2':'カキクケコ',
				'3':'サシスセソ',
				'4':'タチツテト',
				'5':'ナニヌネノ',
				'6':'ハヒフヘホ',
				'7':'マミムメモ',
				'8':'ヤユヨ',
				'9':'ラリルレロ',
				'10':'ワ　A~Z 0~9'
				}"></s:select>
		<span>分野</span>
		<s:select name="bunyaKey" list="bunyaBean" listKey="bunya_id" listValue="bunya_name" headerKey="0" headerValue="--すべて--" ></s:select>
		<s:submit action="talentSearch" value="検索" cssClass="btnSearch"></s:submit>	
	</p>	
	<table class="maincontent">
		<tr><td class="talenttdtitle talenttdtitle1">名前</td>
			<td class="talenttdtitle talenttdtitle2">分野</td>
			<td class="talenttdtitle talenttdtitle3">登録日</td></tr>
		<s:iterator value="bean">
		<tr><td class="talenttd talenttd1">&nbsp;
				<s:url id="seq" action="talentInfo.action" >
					<s:param name="talent_id"><s:property value="talent_id" /></s:param>
				</s:url>
				<s:a href="%{seq}"><s:property value="talent_kana" /></s:a></td>
			<td class="talenttd talenttd2"><s:property value="bunya_name" /></td>
			<td class="talenttd talenttd3"><s:property value="upd_date" /></td></tr>
			<s:hidden name="talent_id" value="talent_id" />
		</s:iterator>
	</table>
	<p>		
		<c:if test="${pageMap.prevPage != 0}">
			<c:url var="prevPage" value="talentList.action" scope="request">
				<c:param name="curPage" value="${pageMap.prevPage}" />
			</c:url>
			<a href="${prevPage}">≪</a>&nbsp;&nbsp;
		</c:if>
		<c:forEach var="i" begin="${pageMap.startPage}" end="${pageMap.endPage}" step="1">
			<c:url var="pageMove" value="talentSearch.action" scope="request">
				<c:param name="curPage" value="${i}" />
				<c:param name="kanaKey"><s:property value="kanaKey" /></c:param>
				<c:param name="bunyaKey"><s:property value="bunyaKey" /></c:param>
			</c:url>			
			<c:choose>
				<c:when test="${i==pageMap.curPage}">
					<a href="${pageMove}"><font color="red">${i}</font></a>
				</c:when>
			<c:otherwise>
				<a href="${pageMove}">${i}</a>
			</c:otherwise>
			</c:choose>
				<c:if test="${i<pageMap.endPage}">|</c:if>
		</c:forEach>
		<c:if test="${pageMap.nextPage != 0}">
			<c:url var="nextPage" value="talentList.action" scope="request">
				<c:param name="curPage" value="${pageMap.nextPage}" />
			</c:url>
		&nbsp;&nbsp;<a href="${nextPage}">≫</a>
		</c:if>
	</p>
	<p>
		<s:submit action="talentInsertPage" value="新規追加" cssClass="btnDefault" />
		<s:submit onclick="javascript:na_open_window();" value="PICKUP"  cssClass="btnDefault" />
		<!-- <input type="button" value="PICKUP" onclick="javascript:na_open_window();" /> --> 
	</p>
	</center>
</s:form>
</div>
</body>
</html>